<?php

/**
 * This is the model metadata class for table "goods_publish_applyfor".
 */
class GoodsPublishApplyforMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'goods_publish_applyfor';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('applyfor_id', 'required'),
			array('status', 'numerical', 'integerOnly'=>true),
			array('applyfor_id, applicant_id, auditor_id', 'length', 'max'=>20),
			array('created_time, audit_time', 'safe'),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('applyfor_id, applicant_id, created_time, status, auditor_id, audit_time', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'applyfor_id' => '申请单id',
			'applicant_id' => 'Applicant',
			'created_time' => 'Created Time',
			'status' => 'Status',
			'auditor_id' => 'Auditor',
			'audit_time' => 'Audit Time',
		);
	}
}